<?php
        set_time_limit(0);
        include_once('./config/config.inc');
        include_once($raiz . '/../config/config-mysql.inc');
        include_once('../classes/Util.inc'); //Nova classe
        include_once($raiz . '/connections/banco.inc');
        include_once($raiz . '/classes/Cabecalho.inc');
        include_once($raiz . '/classes/CriarObjeto.inc');
        include_once($raiz . '/classes/CriarObjetoDAO.inc');
        include_once($raiz . '/classes/CriarInsert.inc');
        include_once($raiz . '/classes/CriarForm.inc');
        include_once($raiz . '/classes/CriarRelatorio.inc');
        include_once($raiz . '/classes/CriarFormNovoDeste.inc');
        include_once($raiz . '/classes/CriarFormUpdate.inc');
        include_once($raiz . '/classes/CriarConsulta.inc');
        include_once($raiz . '/classes/CriarFormPesquisa.inc');
        include_once($raiz . '/classes/CriarPesquisaTabela.inc');
        include_once($raiz . '/classes/CriarConteudo.inc');
        include_once($raiz . '/classes/CriarConsultaTabela.inc');
        include_once($raiz . '/classes/CriarFormConsulta.inc');
        include_once($raiz . '/classes/CriarUpdate.inc');
        include_once($raiz . '/classes/CriarValidacao.inc');
        include_once($raiz . '/classes/CriarDelete.inc');
        include_once($raiz . '/classes/CriarXls.inc');
        include_once($raiz . '/classes/CriarComponentes.inc');
        include_once($raiz . '/classes/JavaScriptParaCamposNotNull.inc');

        $baseDadosUsada = $GLOBALS['baseDados'];

        $objDataBase = new DataBase($baseDadosUsada);

        CriarComponentes::processar($objDataBase);

        header('location: sucesso.php');
?>